package com.wwc.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

@RestController
@Slf4j
@RequestMapping("/payment")
@Api(value = "PaymentController")
public class PaymentController{
	@Value(value = "${server.port}")
	private String serverPort;
	
	@RequestMapping(value = "/paymentZK")
	@ApiOperation(value = "payment注册到ZK")
	public String paymentZK(){
		return "zookeeper: " + serverPort + "\t" + UUID.randomUUID();
	}
	
}
